import java.util.Arrays;

public class Test8 {
    public static int[] find(int[] arr){
        int[] ret={-1,-1,-1};
        for(int i=0;i+2<arr.length;i++){
            if(arr[i]%2!=0 && arr[i+1]%2!=0 && arr[i+2]%2!=0){
                ret[0]=arr[i];
                ret[1]=arr[i+1];
                ret[2]=arr[i+2];
            }
        }
        return ret;
    }
    public static void main(String[] args) {
        int[] arr={1,2,34,3,4,5,7,23,12};
        int[] temp= find(arr);
        System.out.println(Arrays.toString(temp));
    }
}
